<?php
namespace app\admin\Validate;
use think\Validate;

class CategroySpecification extends Validate
{
    protected $rule = [
        'categroy_id'  =>  'require|number',
        'spec_staff' =>  'require',
        'spec_name' =>  'require'

    ];
    protected $message = [
        'categroy_id.require' => '请选择三级分类',
        'spec_staff.require' => '请选择规格级别',
        'spec_name.require' => '请填写规格名称'

    ];

}